{include="header"}
{include="navigator"}

<div id = "container">
	<h1 class = "header">ผลการประเมินของผู้ประเมินภายนอก</h1>

	<div class = "sidebar-assessment">
	<br>
	{loop="group"}
		<h3><a href = "evaluation.php?id={$value.id}">{$value.name}</a></h3>
	{/loop}
	</div>

	<div class = "center" id = "evaluation">
		<button class="print">พิมพ์รายงาน</button>
		<h2>{$group[$id-1][name]}</h2>
		<form action = "evaluation-update.php" method = "post">
			<input type = "hidden" name = "gid" value = "{$id}">
			<div class = "center" id = "evaluation">
				<table cellpadding = "0" cellspacing = "0" border = "0" class = "list">
					<tr>
						<td class = "head">จุดแข็ง / แนวทางเสริมจุดแข็ง</td>
						{if="$user['level_name']=='board'"}
						<td><textarea class = "h100 w350" name = "strength">{$evaluation[strength]}</textarea></td>
						{else}
						<td class = "h100 w350">{$evaluation[strength]}</td>
						{/if}
					</tr>
					<tr>
						<td class = "head">จุดที่ควรพัฒนา / ข้อแนะนำในการปรับปรุง</td>
						{if="$user['level_name']=='board'"}
						<td><textarea class = "h100 w350" name = "developed">{$evaluation[developed]}</textarea></td>
						{else}
						<td class = "h100 w350">{$evaluation[developed]}</td>
						{/if}
					</tr>
					<tr>
						<td class = "head">แนวทางปฏิบัติที่ดี / นวัตกรรม (ถ้ามี)</td>
						{if="$user['level_name']=='board'"}
						<td><textarea class = "h100 w350" name = "innovation">{$evaluation[innovation]}</textarea></td>
						{else}
						<td class = "h100 w350">{$evaluation[innovation]}</td>
						{/if}
					</tr>
					<tr>
						<td class = "head">ข้อเสนอแนะ</td>
						{if="$user['level_name']=='board'"}
						<td><textarea class = "h100 w350" name = "suggestion">{$evaluation[suggestion]}</textarea></td>
						{else}
						<td class = "h100 w350">{$evaluation[suggestion]}</td>
						{/if}
					</tr>
				</table>
				{if="$user['level_name'] == 'board'"}
				<input type = "submit" value = "ตกลง">
				{/if}
			</div>
		</form>
	</div>

	<div class = "clear"></div>
</div>
<script>
	$('.print').popupWindow({ 
		windowURL:'http://127.0.0.1/kpi/evaluation.php?id={$id}&mode=preview',
		windowName:'preview',
		width : 700,
		scrollbars : 1,
	});
</script>
{include="footer"}